-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor interning to properly mark memory as mutable or immutable #58351
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
7d53e06
to
11518e2
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
98039de
to
7e8dc45
Compare
I guess this is a good time to fix that as well? |
7e8dc45
to
99d3e10
Compare
☔ The latest upstream changes (presumably #58691) made this pull request unmergeable. Please resolve the merge conflicts. |
a4ba6bf
to
acc5c58
Compare
done |
@RalfJung I think it would make sense to merge this now and resolve the checkboxes from the OP in a separate PR. |
☔ The latest upstream changes (presumably #59226) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r=RalfJung |
📌 Commit 62af19b has been approved by |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors r- |
fc15d7c
to
ce39fff
Compare
"Was lange währt wird endlich gut" |
📌 Commit cd290c7 has been approved by |
Refactor interning to properly mark memory as mutable or immutable r? @RalfJung This implementation is incomplete out of multiple reasons * [ ] add `-Zunleash_the_miri_inside_of_you` tests * [ ] report an error if there's an `UnsafeCell` behind a reference in a constant * [ ] make validity checks actually test whether the mutability of their allocations match what they see in the type
☀️ Test successful - checks-travis, status-appveyor |
Was this kind of perf regression expected? |
partly, all the ctfe ones were definitely expected, since we are doing more work now in order to place constants into the correct memory location (before we were doing a kind of best effort thing that overaggressively placed constants into mutable memory). I'll look into improving this though. |
r? @RalfJung
This implementation is incomplete out of multiple reasons
-Zunleash_the_miri_inside_of_you
testsUnsafeCell
behind a reference in a constant